<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="/shop/include :: header"></head>
<body>
	<form class="layui-form" action="" lay-filter="shop_member_address-update-form" style="margin-top: 20px;">
		<input th:value="${session.formToken}" name="formToken" type="hidden" />
		<input name="id" th:value="${shopMemberAddress.id}"
			type="hidden">
		<!--  -->
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">会员ID：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="memberId"
					th:value="${shopMemberAddress.memberId}" name="memberId"
					placeholder="请输入会员ID">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">省：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="province"
					th:value="${shopMemberAddress.province}" name="province"
					placeholder="请输入省">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">市：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="city"
					th:value="${shopMemberAddress.city}" name="city"
					placeholder="请输入市">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">区：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="area"
					th:value="${shopMemberAddress.area}" name="area"
					placeholder="请输入区">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">详细地址：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="address"
					th:value="${shopMemberAddress.address}" name="address"
					placeholder="请输入详细地址">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">邮政编码：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="postalCode"
					th:value="${shopMemberAddress.postalCode}" name="postalCode"
					placeholder="请输入邮政编码">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">收货人：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="receivingName"
					th:value="${shopMemberAddress.receivingName}" name="receivingName"
					placeholder="请输入收货人">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">电话号码：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="receivingPhone"
					th:value="${shopMemberAddress.receivingPhone}" name="receivingPhone"
					placeholder="请输入电话号码">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">是否默认 0：不默认1：默认：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="isDefault"
					th:value="${shopMemberAddress.isDefault}" name="isDefault"
					placeholder="请输入是否默认 0：不默认1：默认">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">添加时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="createTime"
					th:value="${#dates.format(shopMemberAddress.createTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="createTime" placeholder="请输入添加时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">修改时间：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="updateTime"
					th:value="${#dates.format(shopMemberAddress.updateTime, 'yyyy-MM-dd HH:mm:ss')}"
					name="updateTime" placeholder="请输入修改时间">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">启用状态 0：已启用1：未启用：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="enableState"
					th:value="${shopMemberAddress.enableState}" name="enableState"
					placeholder="请输入启用状态 0：已启用1：未启用">
			</div>
		</div>
 		<!--  -->
		<div class="layui-form-item">
			<label class="layui-form-label">删除状态 0：未删除1：已删除：</label>
			<div class="layui-input-block">
				<input class="layui-input" lay-verify="required" autocomplete="off" id="deleteFlag"
					th:value="${shopMemberAddress.deleteFlag}" name="deleteFlag"
					placeholder="请输入删除状态 0：未删除1：已删除">
			</div>
		</div>
 		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="shop_member_address-update">立即提交</button>
			</div>
		</div>
	</form>
	<div th:include="/shop/include::footer"></div>
	<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
	<script>
		layui.use([ 'layer', 'jquery', 'form', 'laydate' ], function() {
			var $ = layui.jquery;
			var laydate = layui.laydate;
			var layer = layui.layer;
			var form = layui.form;

			//日期时间选择器
          			laydate.render({
				elem : '#createTime',
				type : 'datetime'
			});
 			laydate.render({
				elem : '#updateTime',
				type : 'datetime'
			});
   
			//监听提交
			form.on('submit(shop_member_address-update)', function(data) {
				//提交数据data.field
				ajaxPostLoad("/shop/member_address/update", data.field);
				return false;
			});
		});
	</script>
</body>
</html>